package com.wanlian.router.net.netty;


public class MessageSender {


    private volatile static MessageSender INSTANCE = null;
    private NettyClient client;

    private MessageSender() {

    }

    public static MessageSender getInstance() {
        if (INSTANCE == null) {
            INSTANCE = new MessageSender();
        }
        return INSTANCE;
    }

    public void start() {
        client = new NettyClient();
        new Thread(client).start();
    }

}
